/*
 * @Description: 
 * @Author: BaldHead
 * @Date: 2022-04-05 19:32:25
 * @LastEditTime: 2022-04-12 17:20:13
 * @LastEditors: Please set LastEditors
 */
//example 1
var a = {},
    b = '123',
    c = 123;
a[b] = 'B';
a[c] = 'C';
console.log(a[b]); //C

//exmaple 2
var a = {},
    b = Symbol('123'),
    c = Symbol('123');
a[b] = 'B';
a[c] = 'C';
console.log(a[b]); //B

//exmaple 3
var a = {},
    b = { key: '123' },
    c = { key: '123' };
a[b] = 'B';
a[c] = 'C';
console.log(a[b]); //C